#pragma once
// #include "zqm_module.h"
#define ZY_DRV_DISP_KEY_TM1618

#if (ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_0 || ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_3 || ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_4)
// 定义显示内存大小, 5位7段
#define DISP_MEMORY_SIZE			5
#define disp_item_d_start			0
#elif (ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_3y)
// 定义显示内存大小, 4位8段
#define DISP_MEMORY_SIZE			4
#define disp_item_d_start			0
#endif

// display led digital number -- 基本不会变化，具体有没有某项，依赖led_icon_code_table决定
typedef enum {
	// icon led
	disp_item_comp = 0,
	disp_item_hot,
	disp_item_defrost,
	disp_item_lp,
	disp_item_lock,
	disp_item_alarm,
	disp_item_fan,
	disp_item_door,
	disp_item_wifi,
	disp_item_4g,
	disp_item_battery,
	disp_item_bt,
	disp_item_drip,
	disp_item_pow, 		// 电源指示灯
	disp_item_dot,
	disp_item_minus,
	LED_ICON_NUM,
	// 7seg digital led
	disp_item_d1 = LED_ICON_NUM,	// 百
	disp_item_d2,					// 十
	disp_item_d3,					// 个
	LED_ITEM_NUM,
	LED_DIGITAL_NUM = LED_ITEM_NUM - LED_ICON_NUM,
}disp_item_t;

#if (ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_0 || ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_3 || ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_3y)
// key description akm901-akm906 ZQ_DISPLAY_PANEL_TYPE == 4机型无键，无所谓，程序按照有键执行逻辑
typedef enum {
	ZQ_KEY_SET = 0,
	ZQ_KEY_PLUS,
	ZQ_KEY_MINUS,
	ZQ_KEY_NUM,
	ZQ_KEY_INVALID = 0x7f, // 无效值
	ZQ_KEY_TOGGLE = ZQ_KEY_INVALID,
	ZQ_KEY_FUNC = ZQ_KEY_INVALID,
	ZQ_KEY_LIGHT = ZQ_KEY_INVALID,
	ZQ_KEY_SWITCH = ZQ_KEY_INVALID,
} ZQ_KEY_ENUM;
#elif(ZQ_DISPLAY_PANEL_TYPE == DPT_INTEGRAL_4)
typedef enum {
	ZQ_KEY_SET = 0,
	ZQ_KEY_PLUS,
	ZQ_KEY_MINUS,
	ZQ_KEY_LIGHT,
	ZQ_KEY_SWITCH = ZQ_KEY_LIGHT,
	ZQ_KEY_NUM,
	ZQ_KEY_INVALID = 0x7f, // 无效值
	ZQ_KEY_TOGGLE = ZQ_KEY_INVALID,
	ZQ_KEY_FUNC = ZQ_KEY_INVALID,
} ZQ_KEY_ENUM;
#endif
